package pers.xx.sbm.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Menu {
    private Integer id;

    private String menuName;

    private String title;//用户传回前端 其值跟menuName一样

    private String field;//用户传回前端 其值跟menuName一样

    private String menuCode;

    private String menuUrl;

    private String menuIcon;

    private Integer menuType;

    private String menuPermission;//菜单权限

    private Integer menuSort;

    private Integer menuLevel;

    private Integer menuPid;

    private String parentName;//父级菜单名称


    private SystemAdmin systemAdmin;

    private Integer menuLoadType;//用户加载方式

    private Integer menuIsDel;

    private String menuAddby;

    private Integer menuAddbyId;

    private Date menuAddTime;

    private Integer menuUpdatebyId;

    private String menuUpdateby;

    private Date menuUpdateTime;


    private String systemName;//所属系统名称

    private String menuRemark;

    private boolean checked = false;

    private boolean spread = true;


    private List<Menu> children = new ArrayList<>();

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public Integer getMenuType() {
        return menuType;
    }

    public void setMenuType(Integer menuType) {
        this.menuType = menuType;
    }

    public Integer getMenuSort() {
        return menuSort;
    }

    public void setMenuSort(Integer menuSort) {
        this.menuSort = menuSort;
    }

    public Integer getMenuLevel() {
        return menuLevel;
    }

    public void setMenuLevel(Integer menuLevel) {
        this.menuLevel = menuLevel;
    }

    public Integer getMenuPid() {
        return menuPid;
    }

    public void setMenuPid(Integer menuPid) {
        this.menuPid = menuPid;
    }

    public Integer getMenuIsEnable() {
        return menuIsDel;
    }

    public void setMenuIsEnable(Integer menuIsDel) {
        this.menuIsDel = menuIsDel;
    }

    public String getMenuAddby() {
        return menuAddby;
    }

    public void setMenuAddby(String menuAddby) {
        this.menuAddby = menuAddby;
    }

    public Integer getNenuAddbyId() {
        return menuAddbyId;
    }

    public void setNenuAddbyId(Integer menuAddbyId) {
        this.menuAddbyId = menuAddbyId;
    }

    public Date getMenuAddTime() {
        return menuAddTime;
    }

    public void setMenuAddTime(Date menuAddTime) {
        this.menuAddTime = menuAddTime;
    }

    public Integer getMenuUpdatebyId() {
        return menuUpdatebyId;
    }

    public void setMenuUpdatebyId(Integer menuUpdatebyId) {
        this.menuUpdatebyId = menuUpdatebyId;
    }

    public String getMenuUpdateb() {
        return menuUpdateby;
    }

    public void setMenuUpdateb(String menuUpdateby) {
        this.menuUpdateby = menuUpdateby;
    }

    public Date getMenuUpdateTime() {
        return menuUpdateTime;
    }

    public void setMenuUpdateTime(Date menuUpdateTime) {
        this.menuUpdateTime = menuUpdateTime;
    }


    public String getMenuRemark() {
        return menuRemark;
    }

    public void setMenuRemark(String menuRemark) {
        this.menuRemark = menuRemark;
    }

    public Integer getMenuLoadType() {
        return menuLoadType;
    }

    public void setMenuLoadType(Integer menuLoadType) {
        this.menuLoadType = menuLoadType;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public String getField() {
        return menuName;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getTitle() {
        return menuName;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    public SystemAdmin getSystemAdmin() {
        return systemAdmin;
    }

    public void setSystemAdmin(SystemAdmin systemAdmin) {
        this.systemAdmin = systemAdmin;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public Integer getMenuAddbyId() {
        return menuAddbyId;
    }

    public void setMenuAddbyId(Integer menuAddbyId) {
        this.menuAddbyId = menuAddbyId;
    }

    public String getMenuUpdateby() {
        return menuUpdateby;
    }

    public void setMenuUpdateby(String menuUpdateby) {
        this.menuUpdateby = menuUpdateby;
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getMenuPermission() {
        return menuPermission;
    }

    public void setMenuPermission(String menuPermission) {
        this.menuPermission = menuPermission;
    }

    public Integer getMenuIsDel() {
        return menuIsDel;
    }

    public void setMenuIsDel(Integer menuIsDel) {
        this.menuIsDel = menuIsDel;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", menuName='" + menuName + '\'' +
                ", title='" + title + '\'' +
                ", field='" + field + '\'' +
                ", menuCode='" + menuCode + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", menuIcon='" + menuIcon + '\'' +
                ", menuType=" + menuType +
                ", menuPermission='" + menuPermission + '\'' +
                ", menuSort=" + menuSort +
                ", menuLevel=" + menuLevel +
                ", menuPid=" + menuPid +
                ", parentName='" + parentName + '\'' +
                ", systemAdmin=" + systemAdmin +
                ", menuLoadType=" + menuLoadType +
                ", menuIsDel=" + menuIsDel +
                ", menuAddby='" + menuAddby + '\'' +
                ", menuAddbyId=" + menuAddbyId +
                ", menuAddTime=" + menuAddTime +
                ", menuUpdatebyId=" + menuUpdatebyId +
                ", menuUpdateby='" + menuUpdateby + '\'' +
                ", menuUpdateTime=" + menuUpdateTime +
                ", systemName='" + systemName + '\'' +
                ", menuRemark='" + menuRemark + '\'' +
                ", checked=" + checked +
                ", spread=" + spread +
                ", children=" + children +
                '}';
    }
}